<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>四则运算：输入两个数，计算他们的加减乘除</title>
	</head>
	<body>
		<script type="text/javascript">
			var a1=prompt("请输入第一个数:");
			var b1=parseInt(a1);
			var a2=prompt("请输入第二个数:");
			var b2=parseInt(a2);
			var he=b1+b2;
			document.write(b1+"+"+b2+"="+he+"<br/>");	
			var cha=b1-b2;
			document.write(b1+"-"+b2+"="+cha+"<br/>");
			var chengji=b1*b2;
			document.write(b1+"*"+b2+"="+chengji+"<br/>");
			var shang=b1/b2;
			document.write(b1+"/"+b2+"="+shang+"<br/>");
		</script>
	</body>
</html>
